using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class MajorChangeSaveConfiguration : Base.BaseEntityConfiguration<MajorChangeSave>
    {
        public override void Configure(EntityTypeBuilder<MajorChangeSave> builder)
        {
            base.Configure(builder);

            builder.ToTable("majorchangesave");

            builder.Property(x=>x.StudentId).HasColumnName("studnet_id").HasMaxLength(2000000).HasColumnOrder(1);
            builder.Property(x=>x.ClassId).HasColumnName("class_id").HasMaxLength(2000000).HasColumnOrder(2);
            builder.Property(x=>x.DormId).HasColumnName("dorm_id").HasMaxLength(2000000).HasColumnOrder(3);
            builder.Property(x=>x.TermId).HasColumnName("term_id").HasMaxLength(2000000).HasColumnOrder(4);
        }
    }
}